#!/usr/bin/python
#Filename: seq.py

job = ('Engineer', 'Saler', 'Boss', 'Assitant')

print 'Item 0 is', job[0]
print 'Item 1 is', job[1]
print 'Item 2 is', job[2]
print 'Item 3 is', job[3]
print 'Item -1 is', job[-1]
print 'Item -2 is', job[-2]
print 'Item -3 is', job[-3]
print 'Item -4 is', job[-4]

print 'Item start to end is', job[:]
print 'Item 0 to 2 is', job[0:2]
print 'Item 2 to 3 is', job[2:3]
print 'Item 2 to 4 is', job[2:4]
print 'Item 3 to 4 is', job[3:4]
print 'Item -3 to 3 is', job[-3:3]

str = 'Fuck Python'
print 'from start to end', str[:]
print 'from 0 to -1', str[0: -1]
print 'from start to -1', str[:-1]
print 'from 2 to end', str[2:]
print 'from 2 to -10', str[2:-10]
